import org.junit.After;
import org.junit.Before;

/**
 * @author Eric
 * @version 1.0
 * @date 2020-01-06
 */
public class AbstractTest {

    private static long start;


    private static long end;


    @Before
    public void before() {
        System.out.println("----------------测试用例开始执行-----------------");
        start = System.nanoTime();
    }


    @After
    public void after() {
        end = System.nanoTime();
        long count = end - start;
        System.out.println("执行耗时 => " + count);
        System.out.println("----------------测试用例执行结束-----------------");
    }

}
